//
//  ManualAddStudentViewController.m
//  CoachsBook
//
//  Created by MaBookPro on 2022/8/20.
//

#import "ManualAddStudentViewController.h"
#import "BaseMessageView.h"
#import "RegisterInformationView.h"

@interface ManualAddStudentViewController ()
{
    UIScrollView *_ScrollView;
    BaseMessageView *_BaseMessageView;
    RegisterInformationView *_RegisterInformationView;
}
@end

@implementation ManualAddStudentViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    self.view.backgroundColor = [UIColor whiteColor];
    //隐藏头部view
    self.navigationController.navigationBar.hidden = YES;
    NavigationHeadView *navgationheadv = [[NavigationHeadView alloc]initWithFrame:CGRectMake(0, 0, APPwidth, SafeAreaTopHight)];
    navgationheadv.titlelabel.text = @"手动添加学员";
    navgationheadv.titlelabel.textColor = [UIColor blackColor];
    navgationheadv.backbtn.hidden = NO;
    [navgationheadv.backbtn addTarget:self action:@selector(returnback) forControlEvents:UIControlEventTouchUpInside];
    [self.view addSubview:navgationheadv];
    
    
    _ScrollView = [[UIScrollView alloc]initWithFrame:CGRectMake(0, SafeAreaTopHight, APPwidth, APPheight+SafeAreaTopHight)];
    _ScrollView.contentSize = CGSizeMake(APPwidth, APPheight*2);
    _ScrollView.backgroundColor = rgba(244, 247, 252, 1);
    _ScrollView.indicatorStyle = UIScrollViewIndicatorStyleWhite;
    _ScrollView.bounces = true; // 表明当前滑动是否有反弹效果
    _ScrollView.pagingEnabled = NO; // 分页效果
    _ScrollView.showsVerticalScrollIndicator = NO;
    _ScrollView.scrollEnabled = true; // 使当前能够滑动和不能滑动
    //    _ScrollView.contentOffset = CGPointMake(414, 0); // 初始位置
    [self.view addSubview:_ScrollView];

    _BaseMessageView = [[BaseMessageView alloc]initWithFrame:CGRectMake(0, 0, APPwidth, 750)];
    [_ScrollView addSubview:_BaseMessageView];
    
    _RegisterInformationView = [[RegisterInformationView alloc]initWithFrame:CGRectMake(0, _BaseMessageView.height+_BaseMessageView.y, APPwidth, 620)];
    [_ScrollView addSubview:_RegisterInformationView];
    
    
    [_RegisterInformationView.btn1 addTarget:self action:@selector(btn1click:) forControlEvents:UIControlEventTouchUpInside];
    
}
-(void)btnbtn1click:(UIButton *)btn{
    
}
-(void)returnback{
    [self.navigationController popViewControllerAnimated:YES];
}
#pragma mark -视图即将出现
-(void)viewWillAppear:(BOOL)animated{
        
    ((TabbarController *)self.tabBarController).tabBarView.hidden = YES;
    
}

@end
